//
//  CarsTableViewCell.m
//  19-Homework
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "CarsTableViewCell.h"
#import "List.h"
#import "UIImageView+WebCache.h"
@interface CarsTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *carsImageView;
@property (weak, nonatomic) IBOutlet UILabel *carsNameLabel;
@end
@implementation CarsTableViewCell

- (void)setList:(List *)list {
    _list = list;
    _carsNameLabel.text = list.name;
    [_carsImageView sd_setImageWithURL:[NSURL URLWithString:list.imgurl]];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
